package com.zhentao.common.enums.admin;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 公告表
 * @TableName ad_notice
 */
@TableName(value ="ad_notice")
@Data
public class AdNotice implements Serializable {
    /**
     * 编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公告内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 0可用 1禁用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 排序
     */
//    @TableField(value = "orders")
//    private Integer orders;

    /**
     * 是否删除
     */
    @TableLogic(value = "1",delval = "2")
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}